package com.prs.crm.remote;

import com.caucho.hessian.server.HessianServlet;
import com.prs.crm.context.UserLoginStore;
import com.prs.crm.domain.hr.Person;
import com.prs.crm.vo.PersonVo;

public class UserRemoteServiceImpl extends HessianServlet implements UserRemoteService{

	private static final long serialVersionUID = 1L;

	public PersonVo getOnlinePerson(String code)
	{
		
		Person person = UserLoginStore.getUser(code);
		
		if (person!=null)
		{
			PersonVo vo = new PersonVo();
			vo.setId(person.getId());
			vo.setPassword(person.getLoginPwd());
			
			return vo;
		}
		else
		{
			return null;
		}
	}
}
